package com.jt.controller;

import com.jt.pojo.Report;
import com.jt.service.ReportService;
import com.jt.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 刘昱江
 * 时间 2021/4/17
 */
@RestController
@CrossOrigin
public class ReportController {

    @Autowired
    private ReportService reportService;

    @GetMapping("/report/getData")
    public SysResult getData(){

        List<Report> list = reportService.getData();
        return SysResult.success(list);
    }
}
